package com.lkl.myRule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LklRule{

    @Bean
    public IRule myRule(){
        return new MyRandomRule(); //默认是轮询，现定义为我们自己的规则
    }
}
